from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

class Config(object):
    """工程配置信息"""
    DEBUG = True
    # 数据库的配置信息
    SQLALCHEMY_DATABASE_URI = "mysql://root:mysql@127.0.0.1:3306/information"
    SQLALCHEMY_TRACK_MODIFICATIONS = False


app = Flask(__name__)

app.config.from_object(Config)
# 数据库初始化
db = SQLAlchemy(app)

@app.route('/')
def index():
    return '刘书文修改'

if __name__ == '__main__':
    app.run(debug=True)
